// 企业后台 招聘会相关请求
import request from '../utils/request';

// 请求招聘会的列表详情接口
export const jobfairList = query => {
    return request.post("/zsrencai/api/company/jobfair/list/page", query, { headers: { 'content-type': "application/json;charset=UTF-8" } })
};

// 请求招聘会的列表详情按钮状态
export const jobFairStatus = query => {
    return request.get(`/zsrencai/api/company/jobfair/jobFairStatus`, query)
};

// 请求招聘会预定
export const jobfairforword = query => {
    return request.get(`/zsrencai/api/company/jobfair/forwordPage/${query}`)
};

// 企业预定信息 增加接口
export const addCompanyJobFairJob = query => {
    return request.post(`/zsrencai/api/company/jobfair-company/addCompanyJobFairJob`, query)
};


// 获取企业信息接口
export const selectcompanybyuserid = query => {
    return request.post(`/zsrencai/api/company/company/selectcompanybyuserid`, query)
};


// 获取职业分页查询接口-杨磊
export const getPageLists = query => {
    return request.post(`/zsrencai/api/company/job/list/page`, query)
};


// 共计几家企业在预定
export const findCompanyByPlace = query => {
    return request.get(`/zsrencai/api/company/jobfair-company/findCompanyByPlace/${query}`)
};

// 福利标签请求
// export const getListTag = query => {
//     return request.get(`/zsrencai/api/company/dict/findDictByCode/allure`)
// };
export const getListTag = query => {
    return request.get(`/zsrencai/api/sys/admin/dict/get/allure`)
};


// 查询修改预定信息详情
export const getfindById = query => {
    return request.get(`/zsrencai/api/company/jobfair-company/findById/${query}`)
};


// 提交修改预定信息详情
export const updataCompany = query => {
    return request.post(`/zsrencai/api/company/jobfair-company/updateCompany/`, query)
};
